<?php
/*
 Plugin Name: Chapter 2 - Private Item Text
Plugin URI: http://wordpress.org/extend/plugins/hello-dolly/
Description: This is not just a plugin, it symbolizes the hope and enthusiasm of an entire generation summed up in two words sung most famously by Louis Armstrong: Hello, Dolly. When activated you will randomly see a lyric from <cite>Hello, Dolly</cite> in the upper right of your admin screen on every page.
Author: Manh Nguyen
Version: 1.6
Author URI: http://ma.tt/
*/

add_shortcode('private', 'ch2pit_private_shortcode');
function ch2pit_private_shortcode($atts, $content = null)
{
	if(is_user_logged_in())
	{
		return '<div class="private">' . $content . '</div>';
	}
	else
	{
		return '';
	}
}

add_action('wp_enqueue_scripts', 'ch2pit_queue_stylesheet');
function ch2pit_queue_stylesheet()
{
	wp_enqueue_style('privateshortcodestyle', plugins_url('stylesheet.css', __FILE__));
}
?>